-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-9572][STREAMING][PYSPARK] Added StreamingContext.getActiveOrCreate() in Python #8080
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@zsxwing Could you take a quick look? |
|
Test build #40324 has finished for PR 8080 at commit
|
|
Test build #1423 has finished for PR 8080 at commit
|
|
Test build #1434 has finished for PR 8080 at commit
|
|
Test build #40377 has finished for PR 8080 at commit
|
python/pyspark/streaming/context.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's better to throw an exception when activeJvmContextOption.get().hashCode() != activePythonContextJavaId because it will be confusing that getActive returns None but getActiveOrCreate still complains there is already an active context in Scala codes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I was on the fence about what to do here. Thanks for deciding for me.
|
Test build #1435 has finished for PR 8080 at commit
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the previous code means the stdout is in python/unit-tests.log, which is correct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you see how LOG_FILE is defined, it is already an absolute path.
https://github.com/tdas/spark/blob/SPARK-9572/python/run-tests.py#L69
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, right. Good catch about the path.
|
retest this please |
|
Test build #40410 has finished for PR 8080 at commit
|
|
retest this please |
|
LGTM. |
|
retest this please |
|
retest this please. |
|
Test build #40418 has finished for PR 8080 at commit
|
|
Test build #40430 has finished for PR 8080 at commit
|
|
Test build #1439 has finished for PR 8080 at commit
|
|
Test build #40431 has finished for PR 8080 at commit
|
python/pyspark/streaming/tests.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
false -> False
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldnt this be false based on Java's style of writing false
|
Test build #1446 has started for PR 8080 at commit |
|
Test build #1447 has started for PR 8080 at commit |
|
Test build #40439 has finished for PR 8080 at commit
|
|
Test build #1448 has finished for PR 8080 at commit
|
|
LGTM |
No description provided.